export default class focus {
    
    
    constructor(){
    	//注册事件	
    	document.addEventListener ("focusout",this.evFocus.bind(this));
    }
    
    static evFocus(e){
    	
    }
    
   
    
    static register(xl){
    	document.removeEventListener ("focusout",focus.evFocus);
    	document.addEventListener ("focusout",focus.evFocus.bind(xl));
    	
    };
    
    
	static getInstance() {
		if(!this.instance) {
			this.instance = new focus();
		}
		return this.instance;
	}

	static getID() {
		let instance = xID.getInstance();
		instance.seq += 1;
		let prefix = 'HE'+Math.round((Math.random()+1)*100000);
		return prefix+(instance.seq+100000)
	}

}